/**
 * Created by wangyonghao on 2017/5/12.
 */
angular.module('accountManager', []).component('accountManager', {
    templateUrl: 'component/base/accountManager/account_manager.template.html',
    controller: ['$scope', '$rootScope', 'Api','CompanyModel', function ($scope, $rootScope, Api, CompanyModel) {


        getCompanyDetail();

        function getCompanyDetail() {
            Api.getCompanyDetail(Api.getAssign(), function (result) {
                $scope.companyDetail = new CompanyModel(result.data);
            });
        }

    }]
});